import request from '@/utils/request.js'


/**
 * 获取商品详情
 */
export function getGoodsDetail(id) {
	return request({
		method: 'GET',
		url: '/goods',
		data: {
			id
		}
	})
}

/** 
 *  加入购物车
 */
export function getGoodsCart({
	skuId,
	count
}) {
	return request({
		method: 'POST',
		url: '/member/cart',
		data: {
			skuId,
			count
		}
	})
}